
public class No32 {
	
	private static String stringFormat(int number, int length){
		StringBuilder sb = new StringBuilder();
		int numberLength = String.valueOf(number).length();
		for (int i = 0; i < length - numberLength; i++) {
			sb.append("0");
		}
		
		sb.append(number);
		
		return sb.toString();
	}
	
	public static void main(String[] args) {
		System.out.println(stringFormat(2911,10));
	}
}
